<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Registry
 *
 * @author Zelic
 */
class Lib_Registry {

    public static $data;
    
    public static function initDatabase() {
        $connectionString = "mysql:host=%s;dbname=%s";
        $connectionString = sprintf($connectionString, Lib_Config::$config['host'], Lib_Config::$config['dbname']);
        Lib_Registry::$data['db'] = new PDO($connectionString, Lib_Config::$config['username'], Lib_Config::$config['password']);
    }

    public static function setRegistry($key, $value) {
        Lib_Registry::$data[$key] = $value;
    }

}

?>
